#ifndef TIMER1_H_
#define TIMER1_H_

#include <avr/io.h>
#include <avr/interrupt.h>

#include "GlobalDefinitions.h"

#define TIMER1_RESOLUTION 512

void Timer1_init(void);

void Timer1FANPWM_init(void);

uint16_t readTCNT1(void);

void setTCNT1(uint16_t v);

void setTCCR1A(uint16_t v);

void setTCCR1B(uint16_t v);

void setTCCR1C(uint16_t v);

void Timer1_set(uint8_t value);

#endif /* TIMER1_H_ */
